package mini

import (
	"fx_swift_api/internal/controller"
	"fx_swift_api/pkg/middleware"
)

func CardRouter() {
	cardApiVer := miniApiVer.Group("card", middleware.CheckAuth())
	{
		cardApiVer.POST("cardHolder", controller.CardHolder)
		cardApiVer.POST("getCardHolderInfo", controller.GetCardHolderInfo)
		cardApiVer.POST("cardApply", controller.CardApply)
		cardApiVer.POST("closeCard", controller.CloseCard)
		cardApiVer.POST("getCardInfo", controller.GetCardInfo)
		cardApiVer.POST("editCardStatus", controller.EditCardStatus)
		cardApiVer.POST("cardRecharge", controller.CardRecharge)
		cardApiVer.POST("cardRefund", controller.CardRefund)
		cardApiVer.POST("getBalance", controller.GetBalance)
	}
}
